public class Candidate
{
    private int value;
    private int available;
    
    public Candidate(int value, int available)
    {
        this.value=value;
        this.available=available;
    }
    
    public Candidate(int value)
    {
         this(value,1); 
    }
    
    public int getValue()
    {
        return value;
    }
    
    public int getAvailable()
    {
        return available;    
    }
    
    public void addOne()
    {
        available++;
    }
    
    public void takeOne()
    {
        available--;    
    }
    
    public String toString()
    {
        if (value<10)
        {
            return "0"+value+"*"+available;
        }
        else
        {
            return ""+value+"*"+available;
        }
    }
        

}
